home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Essential Home & Business Collection
/
The Essential Home & Business Collection.iso
/
27
/
3
/
5
/
HP22D5.ZIP
/
EXTERN
/
IO
/
READ.ASM
< prev
next >
Wrap
Assembly Source File
|
1991-04-16
|
501b
|
38 lines
DOSSEG
.MODEL LARGE
.DATA
.CODE
; ---------------------------------------------------------------------------
; read(handle,buf,num_bytes);
; ---------------------------------------------------------------------------
public _read
_read proc far
push bp
mov bp,sp
push ds
mov ah,03fh
mov bx,[bp+6]
lds dx,[bp+8]
mov cx,[bp+12]
int 21h
jnc end_read
mov ax,-1
end_read:
pop ds
pop bp
retf
_read endp
END